package org.example.zpqy.service;

import org.example.zpqy.bean.CornOne;
import org.example.zpqy.repository.CornOneRepository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CornOneService {
    private final CornOneRepository repository;

    public CornOneService(CornOneRepository repository) {
        this.repository = repository;
    }
    public List<CornOne> findAll() {
        return repository.findAll();
    }
}